package com.bjtang.book.enums;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;


/**
 * target请求方法枚举约束
 */
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = TargetConstraintValidator.class)
public @interface TarGet {

    String message() default " target请求方法有误";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
